<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<button class="btn btn-info" id="add">新 增</button>
		<button class="btn btn-success ajax-post" url="{:U('changeStatus?method=resumeUser')}" target-form="ids">启 用</button>
		<button class="btn btn-warning ajax-post" url="{:U('changeStatus?method=forbidUser')}" target-form="ids">禁 用</button>
		<button class="confirm btn btn-danger ajax-post" url="{:U('changeStatus?method=deleteUser')}" target-form="ids">删 除</button>
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="member_name" class="search-input" value="{:I('member_name')}" placeholder="请输入员工姓名"><button class="btn btn-info" id="search_button" url="{:U('index')}"><i class="icon-search icon-white"></i></button>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<table class="table table-bordered table-striped with-check">
							<thead>
								<tr>
									<th><input type="checkbox" /></th>
									<th>UID</th>
									<th>姓名</th>
									<th>帐号</th>
									<th>推广链接</th>
									<th>登录次数</th>
									<th>最后登录Ip</th>
									<th>最后登录时间</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							<notempty name="_list">
								<volist name="_list" id="vo">
									<tr>
										<td class="taskStatus"><input type="checkbox" value="{$vo.uid}" name="id[]" class="ids"/></td>
										<td class="taskStatus">{$vo.uid}</td>
										<td class="taskStatus">{$vo.member_name|htmlspecialchars}</td>
										<td class="taskStatus">{$vo.login_name|htmlspecialchars}</td>
										<td class="taskStatus">&sdsfd_extend={$vo.uid|encryptUrl}</td>
										<td class="taskStatus">{$vo.login}</td>
										<td class="taskStatus">{:long2ip($vo['last_login_ip'])}</td>
										<td class="taskStatus">{$vo.last_login_time|time_format}</td>
										<td class="taskStatus">{$vo.status_text}</td>
										<td class="taskStatus">
											<a href="{:U('User/edit',array('id'=>$vo['uid']))}"><i class="icon-edit"></i> 编辑</a>　
											<neq name="vo['status']" value="0">
											<a href="{:U('User/changeStatus',array('id'=>$vo['uid'],'method'=>'forbidUser'))}" class="ajax-get"><i class="icon-lock"></i> 禁用</a>　
											</neq>
											<neq name="vo['status']" value="1">
												<a href="{:U('User/changeStatus',array('id'=>$vo['uid'],'method'=>'resumeUser'))}"  class="ajax-get"><i class="icon-unlock"></i> 启用</a>　
											</neq>
											<a href="{:U('Auth/addMmeberToGroup',array('uid'=>$vo['uid']))}"><i class="icon-user-md"></i> 授权</a>　
											<a href="{:U('User/changeStatus',array('id'=>$vo['uid'],'method'=>'deleteUser'))}" class="ajax-get confirm"><i class="icon-remove"></i> 删除</a>
										</td>
									</tr>
								</volist>
							<else/>
								<tr>
									<td colspan="10" class="taskStatus"> Oh~亲爱滴,暂时还没有内容! </td>
								</tr>
							</notempty>
							</tbody>
						</table>
						<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
							{$_page}
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
//新增跳转页面
$('#add').click(function(){
	window.location.href="{:U('User/add')}";
});
//导航高亮
highlight_subnav("{:U('User/index')}");
</script>
</block>